import java.util.Scanner;

/**
 * Created by dllo on 3/28/18.
 */
public class Question01 {
    public static void main(String[] args) {

        System.out.println("请输入任意金额:");

        Scanner scanner = new Scanner(System.in);
        int money = scanner.nextInt();

        int num1 = money;

        int money100 = money / 100;
        money = money % 100;

        int money50 = money / 50;
        money = money % 50;

        int money20 = money / 20;
        money = money % 20;

        int money10 = money / 10;
        money = money % 10;

        int money5 = money / 5;
        money = money % 5;

        System.out.println(num1 + "元最少由:"
                + money100 + "张100元,"
                + money50 + "张50元,"
                + money20 + "张20元,"
                + money10 + "张10元,"
                + money5 + "张5元,"
                + money + "张1元组成");
    }
}
